﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MeinOS.ServiceController
{/*this class controls services, but the a call to the addservice method of an instance of this class must be called.*/
    public class serviceController
    {
        public delegate void stdOut(string Text, bool newlinemode);
        stdOut _stdout;
        public serviceController(stdOut stdout)
        {
            _stdout = stdout;
            _stdout("ServiceManager starting", true);
        }
        List<Service> Services;
        public void AddService(Service service)
        {
            if (service.SSBA == true)
            {
                service.ServiceStart();
            }
            Services.Add(service);
        }
    }    
}
 